]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
util: Don't pass too many arguments to child_watch_add
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Apr 2014 14:16:56 +0000 (10:16 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Apr 2014 14:22:51 +0000 (10:22 -0400)
js/misc/util.js

index ba5de4a758cf3396f65c371a918838ef23af35f1..e78c551fd3ea046db4cacfebe0a3fdae45bd5e3e 100644 (file)
@@ -129,7 +129,7 @@ function trySpawn(argv)
     // Dummy child watch; we don't want to double-fork internally
     // because then we lose the parent-child relationship, which
     // can break polkit.  See https://bugzilla.redhat.com//show_bug.cgi?id=819275
-    GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, function () {}, null);
+    GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, function () {});
 }
 
 // trySpawnCommandLine: